package com.kingdee.openimport.patch_service.dao;

import com.kingdee.openimport.patch_service.model.Patch;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Niki on 2018/4/21 10:29
 */
public interface PatchRepository extends JpaRepository<Patch, Integer> {
    List<Patch> findByVersion(String version);

//    @Query(value = "select id, className from Patch where version=?1 and type=?2")
    List<Patch> findIdAndClassNameByVersionAndType(String version, String type);


}
